/**
 * 学生类
 */
public class NewStudent {
    /**学生
     *
     */
    private String name;

    /**年龄
     *
     */
    private String age;

    /**构造方法，用来传入属性值
     *
     * @param inputName
     * @param inputAge
     */
    public NewStudent(String inputName,String inputAge){
        this.name = inputName;
        this.age =  inputAge;
    }

    /**吃饭
     *
     */
    public void eat(){
        System.out.println(name + "吃饭");
    }

    /**无返回值，吃饭重载方法
     *
     * @param food
     */
    public void String(String food){
        System.out.println(name + "学生吃的" + food);
    }

    /**有返回值
     *
     * @param food
     * @param time
     * @return
     */
    public String eat(String food,String time){
        System.out.println("学生在" + time + food);
        return name + "吃饱了";
    }

}
